package com.itheima.health.controller;

import com.itheima.health.pojo.CheckItem;
import com.itheima.health.service.CheckItemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@Api(tags = "检查项管理开发")
public class CheckController {

    @Reference
    private CheckItemService checkItemService;

    @GetMapping("checkitem/findAll")
    @ApiOperation(value = "查询功能",notes = "查询所有的检查项列表信息")
    public List<CheckItem>  findAll(){
        return checkItemService.list();
    }
}
